import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:loxen/utils/color.dart';

class AddressNullCard extends StatelessWidget {
  final Function() onClick;

  const AddressNullCard({Key key, this.onClick}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Card(
      elevation: 5,
      child: Container(
        width: double.infinity,
        child: InkWell(
            onTap: onClick,
            child: Column(
              children: [
                Padding(
                  padding: EdgeInsets.only(top: 30.h, bottom: 30.h),
                  child: Image.asset(
                    'images/add_address.png',
                    width: 56.w,
                    height: 56.w,
                  ),
                ),
                Padding(
                  padding: EdgeInsets.only(bottom: 30.h),
                  child: Text(
                    '请选择收货地址',
                    style: TextStyle(fontSize: 28.sp, color: Colours.dark_text_gray),
                  ),
                )
              ],
            )),
      ),
    );
  }
}
